package com.chen.facemanager.controller;

import com.chen.facemanager.bean.Device;
import com.chen.facemanager.bean.Local;
import com.chen.facemanager.dao.DeviceDao;
import com.chen.facemanager.dao.LocalDao;
import com.chen.facemanager.service.LocalService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value="/local", tags="位置模块")
@RestController
@RequestMapping("/local")
public class LocalController {

    @Autowired
    private LocalService localService;

    @ApiOperation(value = "新增位置",notes = "新增位置")
    @PostMapping("/save")
    public void save(@RequestBody Local local){
        localService.save(local);
    }
}
